﻿<UserControl x:Class="EpicLeadManager.Views.Main.PlayerTemplateUc"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d" d:DesignWidth="300" Height="57">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Resources/Icons/Icons.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>


    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="5*" />
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <!--Player Name-->
        <TextBlock x:Name="PlayerNameTextBox" Grid.Column="0" Text="{Binding Path=Name}" />

        <!-- Image of profession -->
        <Rectangle Grid.Column="1"
                   Fill="{Binding Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Button}}}">
            <Rectangle.OpacityMask>
                <VisualBrush Stretch="Fill"
                             Visual="{StaticResource appbar_adobe_aftereffects}" />
            </Rectangle.OpacityMask>
        </Rectangle>

        <!-- Edit player -->
        <TextBlock Grid.Column="2" Text="&#9206;" />
    </Grid>
</UserControl>